.class Lcom/yfttI/sCOPm/DLPZo/UaXhh/LiaZe;
.super Ljava/lang/Object;

# interfaces
.implements Lorg/apache/http/client/RedirectHandler;


# instance fields
.field final synthetic RiOxq:Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;


# direct methods
.method constructor <init>(Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;)V
    .locals 0

    iput-object p1, p0, Lcom/yfttI/sCOPm/DLPZo/UaXhh/LiaZe;->RiOxq:Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public getLocationURI(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Ljava/net/URI;
    .locals 2

    if-nez p1, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-direct {v0}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v0

    :cond_0
    const-string v0, "location"

    invoke-static {v0}, Lcom/yfttI/sCOPm/DLPZo/UaXhh/wquxd;->RYeVV(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Lorg/apache/http/HttpResponse;->getFirstHeader(Ljava/lang/String;)Lorg/apache/http/Header;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-interface {v0}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_1

    :try_start_0
    new-instance v0, Ljava/net/URI;

    iget-object v1, p0, Lcom/yfttI/sCOPm/DLPZo/UaXhh/LiaZe;->RiOxq:Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;

    invoke-static {v1}, Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;->ItNxQ(Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/net/URI;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception v0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-direct {v0}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v0

    :cond_1
    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-direct {v0}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v0
.end method

.method public isRedirectRequested(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z
    .locals 3

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/yfttI/sCOPm/DLPZo/UaXhh/LiaZe;->RiOxq:Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;

    invoke-static {v1}, Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;->iHKCj(Lcom/yfttI/sCOPm/DLPZo/UaXhh/EilzM;)Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-direct {v0}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v0

    :cond_2
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v1

    invoke-interface {v1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v1

    const/16 v2, 0x12c

    if-lt v1, v2, :cond_0

    const/16 v2, 0x190

    if-ge v1, v2, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method
